package com.tzpay.tzpay.threadpool;

public class TaskManager
{

    private static TaskManager tpMg = new TaskManager();

    public static TaskManager getInstance()
    {
        return tpMg;
    }

    private TaskManager()
    {
    }

    public void doTask(final Task task)
    {
        if (task == null)
        {
            return;
        }
        AsyncTaskExecutors.executeTask(new Runnable() {
            @Override
            public void run() {
                task.execute();
            }
        });
    }
}
